#include <stdio.h>
#include <log.h>

int main()
{
    log_set_level(LOG_ALL);
    // log_set_mode(MODE_FILE_HANDLER, stdout, NULL, 0);
    log_set_mode(MODE_FILE_SIZE_LIMITED, NULL, "lalala", 500);
    for ( int i=0; i<100; i++ ) {
        int n = log_write(LOG_INFO, "This is the start %d", i);
        printf("%d\n", n);
    }
}